package com.aliyun.messagemgt.controller;

import com.aliyun.messagemgt.application.service.SmsSignService;
import com.aliyun.messagemgt.web.controller.SmsSignController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;

/**
 * @author wenyaxin
 * @date 2020/12/2
 */
@RunWith(MockitoJUnitRunner.class)
public class SmsSignControllerTest {

    @InjectMocks
    private SmsSignController smsSignController;

    @Mock
    private SmsSignService smsSignService;

    @Test
    public void getSmsSignsTest(){
        Mockito.when(smsSignService.getSmsSigns(Mockito.any())).thenReturn(1);
        smsSignController.getSmsSigns(1);
    }
}
